import request from '@/utils/request'

// 查询规格值列表
export function listSpecs(query) {
  return request({
    url: '/lkshop/specs/list',
    method: 'get',
    params: query
  })
}

// 查询规格值详细
export function getSpecs(id) {
  return request({
    url: '/lkshop/specs/' + id,
    method: 'get'
  })
}

// 新增规格值
export function addSpecs(data) {
  return request({
    url: '/lkshop/specs',
    method: 'post',
    data: data
  })
}

// 修改规格值
export function updateSpecs(data) {
  return request({
    url: '/lkshop/specs',
    method: 'put',
    data: data
  })
}

// 删除规格值
export function delSpecs(id) {
  return request({
    url: '/lkshop/specs/' + id,
    method: 'delete'
  })
}
